/*
 *  Nimble, an extensive application base for Grails
 *  Copyright (C) 2010 Bradley Beddoes
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

// change the JavaScript library that grails & nimble use by adjusting this value
// valid values: jquery, mootools prototype
grails.views.javascript.library='jquery'

nimble {
    organization {
        name = "Recipe Exchange"
        displayname = "Recipe Exchange"
        description = ""
        logo = ""
        logosmall = ""
        url = ""
    }

	layout {
        application = 'app'
        administration = 'admin'
		login = 'app'
    }

    resources {
        jslibrary = grails.views.javascript.library
    }

    localusers {
        authentication {
            enabled = true
        }
        registration {
            enabled = true
        }
    }

    facebook {
        federationprovider {
            enabled = false
            autoprovision = false
        }

        apikey = ""
        secretkey = ""
    }

    openid {
        federationprovider {
            enabled = true
            autoprovision = true
        }
    }

    messaging {
		enabled = true

        registration {
            subject = "Your new account is ready!"
        }
        passwordreset {
            subject = "Your password has been reset"
            external.subject = "Your password reset request"
        }

        mail {
            from = "glenn.saqui@gmail.com"
            host = ""
            port = 25
            username = ""
            password = ""
            props = ["mail.smtp.auth": "false",
              "mail.smtp.socketFactory.port": "25",
              "mail.smtp.socketFactory.class": "javax.net.ssl.SSLSocketFactory",
              "mail.smtp.socketFactory.fallback": "false"]
        }
    }

    implementation {
    	user = "com.recipeexchange.domain.User"
    	profile = "com.recipeexchange.domain.Profile"
    }
}

environments {
    development {
        nimble {
            recaptcha {
                enabled = true
                secureapi = true

                // These keys are generated by the ReCaptcha service
                publickey = "6LfStbkSAAAAAOTtOhO9sYl9pEdbQRyknvwclMTP"
                privatekey = "6LfStbkSAAAAAMkWqx0i9ZIMtOTXds-3LePGTwjL"

                // Include the noscript tags in the generated captcha
                noscript = true
            }

            resources {
                jslibrary = grails.views.javascript.library
                usejsdev = true
                usecssdev = true
            }
        }
    }
    production {
        nimble {
            recaptcha {
                enabled = false
                secureapi = false

                // These keys are generated by the ReCaptcha service
                publickey = ""
                privatekey = ""

                // Include the noscript tags in the generated captcha
                noscript = true
            }

            resources {
                jslibrary = grails.views.javascript.library
                usejsdev = false
                usecssdev = false
            }
        }
    }
}
